﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HtmlEditor.ascx.cs"
    Inherits="FisheryPlatform.Web.Admin.Modules.HtmlEditor" %>
<!--begin editor -->
<input type="hidden" runat="server" id="txt_Html" />
<input type="hidden" runat="server" id="txt_Text" />
<div class="font_edit" onmousedown="return false;">
    <div class="tool">
        <div class="tlcon">
            <div>
                <img alt="" src="<%=ImageUrlPath %>/cut.gif" onmousedown="fSetBorderMouseDown(this)"
                    onmouseover="fSetBorderMouseOver(this)" title="剪切" onclick="format('cut');return false;"
                    onmouseout="fSetBorderMouseOut(this)" />
                <img alt="" src="<%=ImageUrlPath %>/copy.gif" onmousedown="fSetBorderMouseDown(this)"
                    onmouseover="fSetBorderMouseOver(this)" title="复制" onclick="format('copy')" onmouseout="fSetBorderMouseOut(this)" />
                <img alt="" src="<%=ImageUrlPath %>/paste.gif" onmousedown="fSetBorderMouseDown(this)"
                    onmouseover="fSetBorderMouseOver(this)" title="粘贴" onclick="format('paste')"
                    onmouseout="fSetBorderMouseOut(this)" />
                <img alt="" src="<%=ImageUrlPath %>/delete.gif" onmousedown="fSetBorderMouseDown(this)"
                    onmouseover="fSetBorderMouseOver(this)" title="删除" onclick="format('delete')"
                    onmouseout="fSetBorderMouseOut(this)" />
                <span class="spar"></span>
                <img alt="" src="<%=ImageUrlPath %>/browse.gif" onmousedown="fSetBorderMouseDown(this)"
                    onmouseover="fSetBorderMouseOver(this)" title="预览" onclick="browse();" onmouseout="fSetBorderMouseOut(this)" />
                <img alt="" src="<%=ImageUrlPath %>/undo.gif" onmousedown="fSetBorderMouseDown(this)"
                    onmouseover="fSetBorderMouseOver(this)" title="撤消" onclick="format('undo')" onmouseout="fSetBorderMouseOut(this)" />
                <img alt="" src="<%=ImageUrlPath %>/redo.gif" onmousedown="fSetBorderMouseDown(this)"
                    onmouseover="fSetBorderMouseOver(this)" title="恢复" onclick="format('redo')" onmouseout="fSetBorderMouseOut(this)" />
                <span class="spar"></span>
                <img alt="" src="<%=ImageUrlPath %>/fontfamily.gif" onmousedown="fSetBorderMouseDown2(this)"
                    onmouseover="fSetBorderMouseOver2(this)" title="字体" id="imgFontface" class="img2"
                    onclick="fDisplayElement('he_Fontface','imgFontface','')" onmouseout="fSetBorderMouseOut2(this)" />
                <img alt="" src="<%=ImageUrlPath %>/fontsize.gif" onmousedown="fSetBorderMouseDown2(this)"
                    onmouseover="fSetBorderMouseOver2(this)" id="imgFontsize" title="字号" class="img2"
                    onclick="fDisplayElement('he_FontSize','imgFontsize','')" onmouseout="fSetBorderMouseOut2(this)" />
                <img alt="" onmousedown="fSetBorderMouseDown2(this)" id="imgSymbol" onmouseover="fSetBorderMouseOver2(this)"
                    title="特殊符号" onclick="fDisplayElement('he_Symbol','imgSymbol','')" class="img2"
                    onmouseout="fSetBorderMouseOut2(this)" src="<%=ImageUrlPath %>/symbol.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="上标" onclick="format('Superscript');" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/superscript.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="下标" onclick="format('Subscript');" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/subscript.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="去除格式" onclick="format('RemoveFormat');" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/removeformat.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" id="imgBold" onmouseover="fSetBorderMouseOver(this,'imgBold')"
                    title="加粗" onclick="format('Bold');" onmouseout="fSetBorderMouseOut(this,'imgBold')"
                    height="20" src="<%=ImageUrlPath %>/bold.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" id="imgItalic" onmouseover="fSetBorderMouseOver(this)"
                    title="斜体" onclick="format('Italic');" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/italic.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" id="imgUnderline" onmouseover="fSetBorderMouseOver(this,'imgUnderline')"
                    title="下划线" onclick="format('Underline');" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/underline.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="长横线" onclick="format('InsertHorizontalRule'); " onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/insertrule.gif" />
            </div>
            <div>
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="左对齐" onclick="format('Justifyleft');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/justifyleft.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="中间对齐" onclick="format('Justifycenter');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/justifycenter.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="右对齐" onclick="format('Justifyright');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/justifyright.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="两端对齐" onclick="format('JustifyFull');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/justifyfull.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="编号" onclick="format('Insertorderedlist');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/numberedlist.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="项目符号" onclick="format('Insertunorderedlist');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/bulletedlist.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="减少缩进" onclick="format('Outdent');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/outdent.gif" />
                <img alt="" onmousedown="fSetBorderMouseDown(this)" onmouseover="fSetBorderMouseOver(this)"
                    title="增加缩进" onclick="format('Indent');return false;" onmouseout="fSetBorderMouseOut(this)"
                    src="<%=ImageUrlPath %>/indent.gif" />
            </div>
        </div>
    </div>
    <!--input type="button" onclick="alert(GetHTMLValue());" value="ShowText" /-->
    <div class="tcon">
        <iframe id="HtmlEditor" name="HtmlEditor" frameborder="0"></iframe>
    </div>
    <div id="he_Fontface" class="lay" style="display: none">
        <a class="n" style="font: 12px '宋体'" onclick="format('fontname',this.innerHTML);this.parentNode.style.display='none'"
            href="javascript:void(0)">宋体</a><a class="n" style="font: 12px '黑体'" onclick="format('fontname',this.innerHTML);this.parentNode.style.display='none'"
                href="javascript:void(0)">黑体</a><a class="n" style="font: 12px '楷体_GB2312'" onclick="format('fontname',this.innerHTML);this.parentNode.style.display='none'"
                    href="javascript:void(0)">楷体</a><a class="n" style="font: 12px Arial" onclick="format('fontname',this.innerHTML);this.parentNode.style.display='none'"
                        href="javascript:void(0)">Arial</a><a class="n" style="font: 12px Verdana" onclick="format('fontname',this.innerHTML);this.parentNode.style.display='none'"
                            href="javascript:void(0)">Verdana</a>
    </div>
    <div id="he_FontSize" class="lay" style="display: none">
        <a style="font-size: 12px;" onclick="format('FontSize','2');this.parentNode.style.display='none'"
            href="javascript:void(0)">稍大</a> <a style="font-size: 14px;" onclick="format('FontSize','3');this.parentNode.style.display='none'"
                href="javascript:void(0)">大</a>
    </div>
    <div id="he_Symbol" class="lay symbol" style="display: none">
        <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
            &euro;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                &pound;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                    &yen;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                        &reg;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                            &copy;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                                &trade;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                                    &Omega;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                                        &micro;</a> <a href="javascript:void(0)" onclick="insertSymbol(this.innerHTML);this.parentNode.style.display='none'">
                                            &lambda;</a>
    </div>
</div>
<!--end editor-->
